package com.md.album

import com.md.basedpc.rx.scheduler.SchedulerUtils
import com.md.network.api.Album
import com.md.network.api.RetrofitBuilderv2
import io.reactivex.rxjava3.core.Observable

class AlbumModel {
    fun getAlbumInfo(albumId: Int): Observable<Album> {
        return RetrofitBuilderv2.apiService.getAlbumInfo(albumId)
                .compose(SchedulerUtils.ioToMain())
    }
}